﻿using Microsoft.AnalysisServices.AdomdClient;
using AdomdClient = Microsoft.AnalysisServices.AdomdClient;

namespace Kona.Data.Provider
{
    public class AdomdClientConnectionFactory:Core.IObjectFactory<AdomdClient.AdomdConnection>
    {
        public AdomdClientConnectionFactory(string connectionString)
        {
            this.ConnectionString = connectionString;
        }

        public string ConnectionString { get; private set; }

        #region Implementation of IObjectFactory<AdomdConnection>

        public AdomdConnection CreateObject()
        {
            return new AdomdConnection(this.ConnectionString);
        }

        #endregion
    }
}
